home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload Trio 2 / Shareware Overload Trio Volume 2 (Chestnut CD-ROM).ISO / dir42 / bltc18z.zip / BORLAND.ZIP / FIXBORL.TXT < prev    next >
Text File  |  1993-08-31  |  1KB  |  35 lines

  1. 31-Aug-93
  2.  
  3. NOTE: BULLET_L.LIB already has this patch applied.
  4.  
  5. To fix the problem with Borland C compilers in large memory models
  6. do the following:
  7.  
  8.  0. Install BULLET first (BULLET.LI_ installs to BULLET.LIB).
  9.  1. Create a new directory.
  10.  2. Make a copy of BULLET.LIB 1.07 and put it in the new directory.
  11.  3. Copy the replacement MEMCXB.OBJ module to the new directory.
  12.  4. Do   C>tlib bullet.lib -memxb +memcxb
  13.  5. Do   C>ren bullet.lib bullet_L.lib
  14.  
  15. That's it. BULLET_L.LIB is created and should run as expected. The memcxb.obj is
  16. written for LARGE/HUGE memory models only. With a couple conditionals, MEDIUM
  17. could be used (I suppose) but it's not necessary in any case.
  18.  
  19. The problem with Borland compilers is that they base their memory management
  20. on memory that isn't theirs, so whenever a DOS INT21/48 call is made, the
  21. Borland memory manager crashes. This patch routes BULLET DOS INT21/48/49 calls
  22. to the run-time's _malloc and _free. Only Borland compilers need use this patch.
  23.  
  24. MEMCXB.ASM is included. Makes for easy programmer changes of this non-
  25. standard module (non-standard in that it requires a C runtime library).
  26.  
  27. xb$SetHandleCount no longer is functional, sinc this makes a call to INT21/67
  28. which makes a call to INT21/48. You may be able to alter you C start-up source
  29. to work around this. If you call INITXB with IP.jftmode=1, error 1 is returned
  30. for invalid function.
  31.  
  32. chh
  33.  
  34. <EOF>
  35.